#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char *argv[])
{
	printf("Hello \n");
	perror(argv[0]);
	pid_t pid;
	int stat;
	int i = 0;
	int xx = 78;
	
	char *h = "hello worle";


	pid = fork();
	if(pid < 0)
	{
		perror("iii");
	} 
	else if(pid == 0)
	{
		printf("I'm child ,parent is %d \n", getppid());
		printf("%d", xx);
		xx = 99;
		printf("%d", xx);

	} else if (pid > 0)
	{
		//wait(&stat);
		sleep(1000);
		printf("I'm parent ,child is %d \n", pid);
		printf("%d", xx);
		xx = 9;
		printf("%d", xx);
	}
	pause();
	return 0; 
	
}
